// 为qiankun添加类型声明
declare global {
  interface Window {
    __POWERED_BY_QIANKUN__?: boolean;
    __INJECTED_PUBLIC_PATH_BY_QIANKUN__?: string;
  }
}

// 修改webpack公共路径，以适配qiankun微前端
if (window.__POWERED_BY_QIANKUN__) {
  // 动态设置publicPath，使资源能够正确加载
  // @ts-ignore
  __webpack_public_path__ = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;
}

export {}; 